package cn.gson.springboot.model.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

@Mapper
public interface RepertoryMapper {
	
	//查询该科室下的药品信息
	public JSONArray findDeptDrug(@Param("did")Integer did,@Param("dname")String dname);
	
	//查询请领记录 
	public JSONArray findInvoice(@Param("dname")String dname);
	
	//查询请领详情
	public JSONArray findInvoiceDetails(@Param("inid")Integer inid);
	
	public void updateAmount(@Param("did")Integer did,@Param("drugId")Integer drugId,
									@Param("amount")Integer amount);
	
}
